//
//  InterViewModel.m
//  FindJob
//
//  Created by apple on 16/3/12.
//  Copyright © 2016年 Lee. All rights reserved.
//

#import "InterViewModel.h"
#import "TimerView.h"

@implementation InterViewModel
- (NSArray *)gainInterViewModels{
    NSArray *titleArr = @[@"类      型",@"公       司",@"地      址",@"时      间",@"提醒时间",@"备      注",@"用户ID"];
    NSMutableArray *reslutArr = [[NSMutableArray alloc] init];
   
    for (int i = 0 ; i < [titleArr count]; i ++) {
         NSArray *values;
        switch (i) {
            case 0:
            {
                values = [self gainEventType];
            }
                break;
            case 1:
            {
                values = [NSArray array];
            }
                break;
            case 2:
            {
                values = [NSArray array];
            }
                break;
            case 3:
            {
                values = @[@""];
            }
                break;
            case 4:
            {
                values = @[@""];
            }
                break;
            case 5:
            {
                values = [NSArray array];
            }break;
            case 6:
            {
                values = [NSArray array];
            }break;
            default:
                break;
        }
        NSDictionary *dict = @{titleArr[i]:values};
        [reslutArr addObject:dict];
    }
    return  reslutArr;
}
- (NSArray *)gainEventType{
    NSString *path = [[NSBundle mainBundle] pathForResource:@"LocalOptions" ofType:@"plist"];
    NSDictionary *dict = [NSDictionary dictionaryWithContentsOfFile:path];
    NSArray *resultArr = dict[@"eventType"];
    return resultArr;
}
@end
